home *** CD-ROM | disk | FTP | other *** search
Text File | 1988-12-07 | 3.1 KB | 94 lines | [TEXT/EDIT] |
- Settings File = GEnie
- Script Name = Batch DL
- Command Key =
- F-key =
- Menu = NO
- Button = NO
-
- 1 If Expression "=(EXISTS(online)=false) or (online=false)"
- 2 Do Script * " Log On"
- 3 When Text Equals ">elp?"
- 4 Or When Seconds Have Passed "=100"
- 5 Do Script * "Timeout Error"
- 6 End When
- 7 End If
- 8 Set Variable SkipLine from Expression "=0"
- 9 Set Variable EOF from Expression "=0"
- 10 Send File * Text Line by Line "DL Files List"
- 11 Set Variable FileNumber from File Line
- 12 If Failure
- 13 Do Script * "Set DL List"
- 14 Set Variable FileNumber from File Line
- 15 End If
- 16 Send Text String "m 606^M"
- 17 When Text Equals ">elp?"
- 18 Send Text String "6^M"
- 19 Or When Seconds Have Passed "=60"
- 20 Do Script * "Timeout Error"
- 21 End When
- 22 Repeat
- 23 Set Variable SkipLine from Expression "=SkipLine+1"
- 24 When Text Equals "elp?"
- 25 Send Text String "=FileNumber,'^M'"
- 26 Or When Seconds Have Passed "=60"
- 27 Do Script * "Timeout Error"
- 28 End When
- 29 When Text Equals "(Y/N)?"
- 30 Remark "Bypass bad file numbers"
- 31 Set Variable PerfectDL from Expression "=false"
- 32 Or When Line Contains "<Q>uit."
- 33 When Text Equals "?"
- 34 Send Text String "d^M"
- 35 Or When Seconds Have Passed "=60"
- 36 Do Script * "Timeout Error"
- 37 End When
- 38 When Text Equals "skip?"
- 39 Send Text String "2^M"
- 40 When Line Contains "receive file"
- 41 Set Variable theTick from Expression "=TICKCOUNT"
- 42 Set Variable theFile from Expression "='GEnie Text DL - ',theTick"
- 43 Receive File * XMODEM MacBinary "=theFile"
- 44 Send File * Text Line by Line "DL Files List"
- 45 Set Variable Kount from Expression "=0"
- 46 Repeat
- 47 Set Variable FileNumber from File Line
- 48 Set Variable Kount from Expression "=Kount+1"
- 49 Until Expression "=Kount = SkipLine"
- 50 Or When Seconds Have Passed "=60"
- 51 Do Script * "Timeout Error"
- 52 End When
- 53 Or When Seconds Have Passed "=60"
- 54 Do Script * "Timeout Error"
- 55 End When
- 56 Or When Seconds Have Passed "=60"
- 57 Do Script * "Timeout Error"
- 58 End When
- 59 Set Variable FileNumber from File Line
- 60 If Failure
- 61 Remark "Must be end of file, so logoff and leave script"
- 62 Set Variable EOF from Expression "=1"
- 63 When Text Equals "(Y/N)?"
- 64 Send Text String "n^M"
- 65 Or When Seconds Have Passed "=60"
- 66 Do Script * "Timeout Error"
- 67 End When
- 68 Wait Seconds "1"
- 69 When Text Equals ">elp?"
- 70 Do Script * "Log Off"
- 71 Or When Seconds Have Passed "=60"
- 72 Do Script * "Timeout Error"
- 73 End When
- 74 Else
- 75 When Text Equals "(Y/N)?"
- 76 Send Text String "y^M"
- 77 Or When Seconds Have Passed "=60"
- 78 Do Script * "Timeout Error"
- 79 End When
- 80 End If
- 81 Until Expression "=(EOF=1)"
- 82 Do Script * "Reset DL List"
- 83 Dialog Discard
- 84 Dialog Install ""Finished Batch Download""
- 85 Wait Seconds "=10"
- 86 Dialog Discard
-